/*
 * XML Type:  InvestmentPositionList
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentPositionList
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML InvestmentPositionList(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public interface InvestmentPositionList extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("investmentpositionlist3908type");
    
    /**
     * Gets array of all "POSMF" elements
     */
    net.ofx.types.x2003.x04.PositionMutualFund[] getPOSMFArray();
    
    /**
     * Gets ith "POSMF" element
     */
    net.ofx.types.x2003.x04.PositionMutualFund getPOSMFArray(int i);
    
    /**
     * Returns number of "POSMF" element
     */
    int sizeOfPOSMFArray();
    
    /**
     * Sets array of all "POSMF" element
     */
    void setPOSMFArray(net.ofx.types.x2003.x04.PositionMutualFund[] posmfArray);
    
    /**
     * Sets ith "POSMF" element
     */
    void setPOSMFArray(int i, net.ofx.types.x2003.x04.PositionMutualFund posmf);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "POSMF" element
     */
    net.ofx.types.x2003.x04.PositionMutualFund insertNewPOSMF(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "POSMF" element
     */
    net.ofx.types.x2003.x04.PositionMutualFund addNewPOSMF();
    
    /**
     * Removes the ith "POSMF" element
     */
    void removePOSMF(int i);
    
    /**
     * Gets array of all "POSSTOCK" elements
     */
    net.ofx.types.x2003.x04.PositionStock[] getPOSSTOCKArray();
    
    /**
     * Gets ith "POSSTOCK" element
     */
    net.ofx.types.x2003.x04.PositionStock getPOSSTOCKArray(int i);
    
    /**
     * Returns number of "POSSTOCK" element
     */
    int sizeOfPOSSTOCKArray();
    
    /**
     * Sets array of all "POSSTOCK" element
     */
    void setPOSSTOCKArray(net.ofx.types.x2003.x04.PositionStock[] posstockArray);
    
    /**
     * Sets ith "POSSTOCK" element
     */
    void setPOSSTOCKArray(int i, net.ofx.types.x2003.x04.PositionStock posstock);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "POSSTOCK" element
     */
    net.ofx.types.x2003.x04.PositionStock insertNewPOSSTOCK(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "POSSTOCK" element
     */
    net.ofx.types.x2003.x04.PositionStock addNewPOSSTOCK();
    
    /**
     * Removes the ith "POSSTOCK" element
     */
    void removePOSSTOCK(int i);
    
    /**
     * Gets array of all "POSDEBT" elements
     */
    net.ofx.types.x2003.x04.PositionDebt[] getPOSDEBTArray();
    
    /**
     * Gets ith "POSDEBT" element
     */
    net.ofx.types.x2003.x04.PositionDebt getPOSDEBTArray(int i);
    
    /**
     * Returns number of "POSDEBT" element
     */
    int sizeOfPOSDEBTArray();
    
    /**
     * Sets array of all "POSDEBT" element
     */
    void setPOSDEBTArray(net.ofx.types.x2003.x04.PositionDebt[] posdebtArray);
    
    /**
     * Sets ith "POSDEBT" element
     */
    void setPOSDEBTArray(int i, net.ofx.types.x2003.x04.PositionDebt posdebt);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "POSDEBT" element
     */
    net.ofx.types.x2003.x04.PositionDebt insertNewPOSDEBT(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "POSDEBT" element
     */
    net.ofx.types.x2003.x04.PositionDebt addNewPOSDEBT();
    
    /**
     * Removes the ith "POSDEBT" element
     */
    void removePOSDEBT(int i);
    
    /**
     * Gets array of all "POSOPT" elements
     */
    net.ofx.types.x2003.x04.PositionOption[] getPOSOPTArray();
    
    /**
     * Gets ith "POSOPT" element
     */
    net.ofx.types.x2003.x04.PositionOption getPOSOPTArray(int i);
    
    /**
     * Returns number of "POSOPT" element
     */
    int sizeOfPOSOPTArray();
    
    /**
     * Sets array of all "POSOPT" element
     */
    void setPOSOPTArray(net.ofx.types.x2003.x04.PositionOption[] posoptArray);
    
    /**
     * Sets ith "POSOPT" element
     */
    void setPOSOPTArray(int i, net.ofx.types.x2003.x04.PositionOption posopt);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "POSOPT" element
     */
    net.ofx.types.x2003.x04.PositionOption insertNewPOSOPT(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "POSOPT" element
     */
    net.ofx.types.x2003.x04.PositionOption addNewPOSOPT();
    
    /**
     * Removes the ith "POSOPT" element
     */
    void removePOSOPT(int i);
    
    /**
     * Gets array of all "POSOTHER" elements
     */
    net.ofx.types.x2003.x04.PositionOther[] getPOSOTHERArray();
    
    /**
     * Gets ith "POSOTHER" element
     */
    net.ofx.types.x2003.x04.PositionOther getPOSOTHERArray(int i);
    
    /**
     * Returns number of "POSOTHER" element
     */
    int sizeOfPOSOTHERArray();
    
    /**
     * Sets array of all "POSOTHER" element
     */
    void setPOSOTHERArray(net.ofx.types.x2003.x04.PositionOther[] posotherArray);
    
    /**
     * Sets ith "POSOTHER" element
     */
    void setPOSOTHERArray(int i, net.ofx.types.x2003.x04.PositionOther posother);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "POSOTHER" element
     */
    net.ofx.types.x2003.x04.PositionOther insertNewPOSOTHER(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "POSOTHER" element
     */
    net.ofx.types.x2003.x04.PositionOther addNewPOSOTHER();
    
    /**
     * Removes the ith "POSOTHER" element
     */
    void removePOSOTHER(int i);
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.InvestmentPositionList newInstance() {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPositionList parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.InvestmentPositionList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
